package ace.module.product.api.model.input;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

/**
 * 商品规格属性值 data transform object.
 *
 * @author Caspar
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Schema(title = "商品规格属性值")
public class PmsProductAttributeValueSaveInput implements Serializable {

  @Schema(title = "id", description = "修改必填")
  private Long id;

  @Builder.Default
  @NotNull
  @Schema(title = "商品规格属性值id", description = "0=null")
  private Long specAttributeValueId = 0L;

  @Builder.Default
  @NotEmpty
  @Size(max = 255)
  @Schema(title = "规格属性值", description = "")
  private String value = "";

  @Builder.Default
  @NotNull
  @Schema(title = "排序", description = "")
  private Integer sort = 0;

}